package com.example.lottery.commen;


import lombok.Data;

/**
 * @author 23050
 * @version 1.0
 * @description: TODO
 * @date 2023/12/5 15:54
 */
@Data
public class ResponseResult {
    private int code;
    private String msg;
    private Object data;

    public static ResponseResult success(int code, String msg, Object data) {
        ResponseResult result = new ResponseResult();
        result.setCode(code);
        result.setMsg(msg);
        result.data = data;
        return result;
    }
    public static ResponseResult failure(int code,String msg,Object data) {
        ResponseResult result = new ResponseResult();
        result.setCode(code);
        result.setMsg(msg);
        result.data = data;
        return result;
    }


}
